package dem02;

public class Demo02ArrayReturn {
    public static void main(String[] args) {
        int[] result = sss( 10,20,30);
        System.out.println("总和：" + result[0]);
        System.out.println("平均数：" + result[1]);
    }
    public static int[] sss(int a, int b, int c){
        int sum = a + b + c;
        int avg = sum / 3;
        int[] array = { sum, avg };
        return array;
    }
}
